/****************************************************************
* Copyright (c) 2006-2021 Jingjia Micro Co., Ltd.
*
* File    :   object.h
* Author  :   luomin1249
* Date    :   2021/08/03
* Desc    :
* Other   :
*              
* History:
* Date        Modifier       Content 
*****************************************************************/

#ifndef __OBJECT_H__
#define __OBJECT_H__

#include "list.h"
#include "common.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
 * Base structure of program object
 */
typedef struct object
{
    char  name[32];                       
    unsigned char type;                                    
    unsigned char flag;                                    
    list_t  list;                                
} object_t;

enum object_info_type {
    Object_Class_Timer = 0,         
    Object_Class_Table,
    Object_Class_Unknown
};

#ifdef __cplusplus
}
#endif

#endif